#include <LPC22xx.h>
#include "Utility.h"
#include "Timer.h"
#include <stdio.h>

void ClearScreen()
{
	char temp[10];
	temp[0] = 0x1B;
	temp[1] = 0x5B;
	temp[2] = 0x32;
	temp[3] = 0x4A;
	temp[4] = 0x1B;
	temp[5] = 0x5B;
	temp[6] = 0x48;
	temp[7] = 0x00;
	printf(temp); // clear screen
}

void SleepUS(int us)
{
	Timer timer;
	timer.BeginPeriod();
	timer.WaitPeriod((float)us/1e6);
}
